package com.fdb.efp.flow.service.dao;

import java.util.List;
import java.util.Map;

import com.fdb.efp.flow.service.domain.InstFlowTask;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * 
 * @author Cytus_
 * @since 2018年5月9日 上午10:47:45
 * @version 1.0
 *
 */
public interface InstFlowTaskDao {

	public int insertInitTaskByNodeId(InstFlowTask task);
	
	public InstFlowTask queryFirstTaskByNodeInstId(String nodeInstId);
	
	public InstFlowTask queryTaskByPreTaskAndInstId(InstFlowTask task);
	
	public int updateTaskStateByNodeTaskId(InstFlowTask task);
	
	public InstFlowTask queryTaskByNodeTaskId(InstFlowTask task);
	
	public InstFlowTask queryTaskNodeIdAndStatus(Map<String, Object> paramMap);
	
	public int countTaskByNodeInstId(String instNodeId);
	
	public List<InstFlowTask> queryPageShowTaskInfo(Map<String, Object> vo);
	
	public List<InstFlowTask> queryByInstNodeId(String instNodeId);

	public int deleteByPk(@Param("instNodeId") String instNodeId);
	
}
